package cool.taomu.toolkit

import com.google.inject.Guice
import com.google.inject.Injector
import com.google.inject.Module
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Bean

class GuiceSpringConfigure {
	
	@Autowired
	protected Module[] module;

	@Autowired
	protected Injector injector;

	@Bean
	def inject() {
		return Guice.createInjector(module)
	}
}
